/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gray.swing.element;

import gray.Frame;
import java.awt.Container;
import javax.swing.JTextPane;

/**
 *
 * @author martin
 */
public class BigTextElem extends JTextPane implements Frame<Container>{
  private BigTextElem(final String txt){
    super();
    setText(txt);
    setEditable(false);
  }
  
  public static Frame<Container> factory(final String txt){
    return new BigTextElem(txt);
  }

  @Override
  public Container container() {
    return this;
  }

  @Override
  public Boolean ready() {
    return true;
  }
  
}
